package com.taobao.ic.diamond;

import java.util.concurrent.Executor;

import com.taobao.diamond.manager.DiamondManager;
import com.taobao.diamond.manager.ManagerListener;
import com.taobao.diamond.manager.impl.DefaultDiamondManager;

public class DiamondGetTest {
	public static void main(String[] args) {
		String group = "test";
		String dataId = "com.taobao.item.event.test";
		DiamondManager diamondManager = new DefaultDiamondManager(group, dataId, new ManagerListener() {
			
			public void receiveConfigInfo(String configInfo) {
				// TODO Auto-generated method stub
				System.out.println(configInfo);
			}
			
			public Executor getExecutor() {
				// TODO Auto-generated method stub
				return null;
			}
		});
		String data = diamondManager.getAvailableConfigureInfomation(1000);
		System.out.println("data="+data);
	}
}
